#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
int main(void)
{
	int pid = 0;
	for(int i = 10;i > 0;i--)
	{
		pid = fork();
		if(pid == 0)
		{
			printf("pid = %d;ppid = %d\n",getpid(),getppid());
			return 0;
		}
	}
	sleep(3);
	printf("pid = %d;ppid = %d\n",getpid(),getppid());
	return 0;
}
